//使用localStorage进行会话的储存
export const getItem = name =>{
	return JSON.parse(window.sessionStorage.getItem(name))
}

export const setItem = (name, data) =>{
	return window.sessionStorage.setItem(name, JSON.stringify(data))
}

export const removeItem = name =>{
	window.sessionStorage.removeItem(name)
}